#include <stdio.h>


char *My_strchr(char * cs,int cc)
{
    while (*cs )
    {
        if (*cs == cc)
        {
           return cs;
           break;
        }
        cs++;
    }
    return NULL;
}

int main(int argc, char const *argv[])
{
    char arr[10] = "hello";
    int A = 'l';
    printf("请输入在hello中需要查找的字符:");
    scanf("%d",&A);
    printf("%s\n",My_strchr(arr,A));
    return 0;
}
